import { post } from '../ck/plugin/axios'

class BaseCurriculum {
  //获取基础学科列表
  static async getSubjectList () {
    return post('api/Manage/BaseSubject/PageSearchList')
  }

  //添加新的课程
  static async addCurriculum (data) {
    return post('api/Manage/BaseCurriculum/Add', data)
  }

  //查询课程列表
  static async getBaseCurriculum (data) {
    return post('api/Manage/BaseCurriculum/PageSearch', data)
  }

  //查询课程集合----id传入的是对应学科的ID
  static async pageSearchList(data){
    return post('api/Manage/BaseCurriculum/PageSearchList',data)
  }

  //点击编辑按钮查询详情
  static async showBaseCurriculumDetail (data) {
    return post('api/Manage/BaseCurriculum/SearchModelDetails', data)
  }

  //点击编辑表单，实现真正的编辑操作
  static async Update( data){
    return post('api/Manage/BaseCurriculum/Update',data)
  }

  //状态的启停
  static async statusChange (data) {
    return post('api/Manage/BaseCurriculum/UpdateStatus', data)
  }

  //删除操作
  static async deleteBaseCurriculum (data) {
    return post('api/Manage/BaseCurriculum/Delete', data)
  }

  //置顶
  static async setTop (data) {
    return post('api/Manage/BaseCurriculum/Top', data)
  }
}

export default BaseCurriculum
